package com.ibangnuo.api;

import com.ibangnuo.framework.domain.Role;
import com.ibangnuo.framework.model.response.QueryResponseResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;

import java.util.Map;

/**
 * @Author:ly
 * @Data:2020/1/9 14:03
 * @Verdion:1.0
 */
@Api(value="权限管理",description = "权限查询和角色管理")
public interface PermissionControllerApi {

    @ApiOperation("权限树查询")
    QueryResponseResult findList();
    @ApiOperation("角色编辑")
    QueryResponseResult upRole(Role role);

    @ApiOperation("权限查询")
    QueryResponseResult findMenuList();


    @ApiOperation("角色查询")
    QueryResponseResult findRoleList(Role role);

    @ApiOperation("角色编辑")
    QueryResponseResult editRole(Role role);

    @ApiOperation("添加用户的角色查询")
    QueryResponseResult findRoleName();


    @ApiOperation("角色单查询")
    QueryResponseResult findRole(String id);

    @ApiOperation("角色添加")
    QueryResponseResult addRole(Role role);

    @ApiOperation("权限添加")
    QueryResponseResult selectMenu(String  id );

    @ApiOperation("角色的权限编辑")
    QueryResponseResult editMenu(Map map);

    @ApiOperation("角色的删除")
    QueryResponseResult delRole(String id);


    @ApiOperation("角色的名称")
    QueryResponseResult RoleNameAll( );
}
